import {request} from './request'
//用户列表
export function user_search(data) {
    return request({
        url: '/user/search/',
        method:'get',
        params:data
    })
}

//添加用户
export function user_add(data) {
    return request({
        url: '/user/add/',
        method:'post',
        data
    })
}

//删除用户
export function user_delete(data) {
    return request({
        url: '/user/delete/',
        method:'post',
        data
    })
}

//启用禁用
export function user_change(data) {
    return request({
        url: '/user/enable/',
        method:'post',
        data
    })
}

//导出
export function user_export(data) {
    return request({
        url: '/user/export/',
        method:'get',
        params:data,
        responseType: 'blob'
    })
}